﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IBLL;
using IDAL;

namespace BLL
{
    public partial class BLLSession 
    {
	   public int SaveChanges()
        {
            IDBSessionFactory sessFactory = DI.Spring.GetObject<IDBSessionFactory>("DBSessFactory");
            var iDbSession = sessFactory.GetDBSession();
            return iDbSession.SaveChanges();
        }
    }
	public partial class BLLSession : IBLLSession
    {
		#region 01 业务接口 ICategory_DAL
		ICategory_BLL iCategory_BLL;
		public ICategory_BLL ICategory_BLL
		{
			get
			{
				if(iCategory_BLL==null)
					iCategory_BLL= new Category_BLL();
				return iCategory_BLL;
			}
			set
			{
				iCategory_BLL= value;
			}
		}
		#endregion

		#region 02 业务接口 ICategoryProperty_DAL
		ICategoryProperty_BLL iCategoryProperty_BLL;
		public ICategoryProperty_BLL ICategoryProperty_BLL
		{
			get
			{
				if(iCategoryProperty_BLL==null)
					iCategoryProperty_BLL= new CategoryProperty_BLL();
				return iCategoryProperty_BLL;
			}
			set
			{
				iCategoryProperty_BLL= value;
			}
		}
		#endregion

		#region 03 业务接口 ILanguageType_DAL
		ILanguageType_BLL iLanguageType_BLL;
		public ILanguageType_BLL ILanguageType_BLL
		{
			get
			{
				if(iLanguageType_BLL==null)
					iLanguageType_BLL= new LanguageType_BLL();
				return iLanguageType_BLL;
			}
			set
			{
				iLanguageType_BLL= value;
			}
		}
		#endregion

		#region 04 业务接口 IProduct_CN_DAL
		IProduct_CN_BLL iProduct_CN_BLL;
		public IProduct_CN_BLL IProduct_CN_BLL
		{
			get
			{
				if(iProduct_CN_BLL==null)
					iProduct_CN_BLL= new Product_CN_BLL();
				return iProduct_CN_BLL;
			}
			set
			{
				iProduct_CN_BLL= value;
			}
		}
		#endregion

		#region 05 业务接口 IProduct_DE_DAL
		IProduct_DE_BLL iProduct_DE_BLL;
		public IProduct_DE_BLL IProduct_DE_BLL
		{
			get
			{
				if(iProduct_DE_BLL==null)
					iProduct_DE_BLL= new Product_DE_BLL();
				return iProduct_DE_BLL;
			}
			set
			{
				iProduct_DE_BLL= value;
			}
		}
		#endregion

		#region 06 业务接口 IProduct_EN_DAL
		IProduct_EN_BLL iProduct_EN_BLL;
		public IProduct_EN_BLL IProduct_EN_BLL
		{
			get
			{
				if(iProduct_EN_BLL==null)
					iProduct_EN_BLL= new Product_EN_BLL();
				return iProduct_EN_BLL;
			}
			set
			{
				iProduct_EN_BLL= value;
			}
		}
		#endregion

		#region 07 业务接口 IProduct_ES_DAL
		IProduct_ES_BLL iProduct_ES_BLL;
		public IProduct_ES_BLL IProduct_ES_BLL
		{
			get
			{
				if(iProduct_ES_BLL==null)
					iProduct_ES_BLL= new Product_ES_BLL();
				return iProduct_ES_BLL;
			}
			set
			{
				iProduct_ES_BLL= value;
			}
		}
		#endregion

		#region 08 业务接口 IProduct_FR_DAL
		IProduct_FR_BLL iProduct_FR_BLL;
		public IProduct_FR_BLL IProduct_FR_BLL
		{
			get
			{
				if(iProduct_FR_BLL==null)
					iProduct_FR_BLL= new Product_FR_BLL();
				return iProduct_FR_BLL;
			}
			set
			{
				iProduct_FR_BLL= value;
			}
		}
		#endregion

		#region 09 业务接口 IProduct_IT_DAL
		IProduct_IT_BLL iProduct_IT_BLL;
		public IProduct_IT_BLL IProduct_IT_BLL
		{
			get
			{
				if(iProduct_IT_BLL==null)
					iProduct_IT_BLL= new Product_IT_BLL();
				return iProduct_IT_BLL;
			}
			set
			{
				iProduct_IT_BLL= value;
			}
		}
		#endregion

		#region 10 业务接口 IProduct_PT_DAL
		IProduct_PT_BLL iProduct_PT_BLL;
		public IProduct_PT_BLL IProduct_PT_BLL
		{
			get
			{
				if(iProduct_PT_BLL==null)
					iProduct_PT_BLL= new Product_PT_BLL();
				return iProduct_PT_BLL;
			}
			set
			{
				iProduct_PT_BLL= value;
			}
		}
		#endregion

		#region 11 业务接口 IProduct_RU_DAL
		IProduct_RU_BLL iProduct_RU_BLL;
		public IProduct_RU_BLL IProduct_RU_BLL
		{
			get
			{
				if(iProduct_RU_BLL==null)
					iProduct_RU_BLL= new Product_RU_BLL();
				return iProduct_RU_BLL;
			}
			set
			{
				iProduct_RU_BLL= value;
			}
		}
		#endregion

		#region 12 业务接口 IProductProperty_DAL
		IProductProperty_BLL iProductProperty_BLL;
		public IProductProperty_BLL IProductProperty_BLL
		{
			get
			{
				if(iProductProperty_BLL==null)
					iProductProperty_BLL= new ProductProperty_BLL();
				return iProductProperty_BLL;
			}
			set
			{
				iProductProperty_BLL= value;
			}
		}
		#endregion

    }
}